package com.jzo2o.market.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzo2o.market.model.domain.Activity;
import com.jzo2o.market.model.dto.request.ActivityQueryForPageReqDTO;
import com.jzo2o.market.model.dto.response.ActivityInfoResDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itcast
 * @since 2023-09-16
 */
@Mapper
public interface ActivityMapper extends BaseMapper<Activity> {

    List<ActivityInfoResDTO> page(ActivityQueryForPageReqDTO pageReqDTO);

    void save(Activity bean);

    ActivityInfoResDTO getById(Long id);

    @Select("select * from activity")
    List<Activity> select();
}
